<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #box1{
            width: 100px;
            height: 100px;
            background-color: red;
            position: absolute;
        }
    </style>
</head>
<body>
    <button id="btn01"></button>
    <div id="box1"></div>
    <script type="text/javascript">
        /* 定时器 */
        window.onload=function(){
            var box1=document.getElementById("box1");
            var btn01=document.getElementById("btn01");
            btn01.onclick=function(){
               setInterval(function(){
                var oldValue=box1.offsetLeft;
               },30)
            }
        }

        var ss=function(){
            return arguments/* 对象 */
        }

        /* Date表示时间 */
        var dd=new Date("12/14/211 11:00:70");
        var day=dd.getDate();/* 周几 */
        var year=dd.getFullYear();/* 年份 */
        var time=dd.getTime();

        
    </script>
</body>
</html>